import { createAPI } from '@/utils/request'
// 标签列表
export const list = data => createAPI('/tags', 'get', data)
// 带id 的标签列表
export const lists = data => createAPI('/tags', 'get', data)
// 更改状态 启用禁用
export const changeState = data => createAPI(`/tags/${data.id}/${data.state}`, 'post', data)
// 查询列表
export const queryCondition = data => createAPI('/tags', 'get', data)
// 删除数据
export const delDataAPI = data => createAPI(`/tags/${data.id}`, 'DELETE', data)
// 文章添加
export const addArticle = data => createAPI('/tags', 'POST', data)
// 修改文章
export const modModification = data => createAPI(`/tags/${data.id}`, 'put', data)

export const listto = data => createAPI('/subjects/simple', 'GET', data)
